package com.chen.service;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "servletSession",urlPatterns = "/servletSession")
public class ServletSession extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.service(req, resp);
        for (int i = 0; i <10 ; i++) {
            System.out.println("当当当当  ，耶耶耶耶！！！");
        }
        System.out.println("访问servletSession成功!");
    }
}
